<template>
	<view class="container">
		<view class="top">
			<view class="order-tab">
				<view class="tab-item" :class="i==tab_index?'select':''" v-for="(item,i) in tabList" :key="i" @click="tab_index=i">
					<text>{{item.text}}</text>
				</view>
			</view>
		</view>
		<view class="list">
			<view class="item">
				<view class="title">
					<view class="name">
						申诉类型名称
					</view>
					<text :style="{color:true?'#A8A4A4':'#FF4A4A'}">{{true ? '已回复' : '未回复'}}</text>
				</view>
				<view class="con-text more-row" :style="{'--row-num':2}">
					内容内容内容内容内容内容内容内容内容内容内容内容
					内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内
				</view>
				<view class="time">
					提交时间：2024-05-24  10:00:00
				</view>
				<view class="i-btn">
					<button @click="toDetail">查看</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabList:[
					{
						text:'全部',
						value:1
					},{
						text:'未回复',
						value:1
					},{
						text:'已回复',
						value:1
					}
				],
				tab_index:0,
			};
		},
		methods:{
			toDetail(){
				uni.navigateTo({
					url:`/pagesRegion/freeze/appealDetail`
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container{
	.top{
		position: sticky;
		top: 0;
		left: 0;
		right: 0;
		z-index: 3;
		background-color: #FFFFFF;
		.order-tab{
			padding: 24rpx 104rpx 12rpx; 
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background-color: #FFFFFF;
			.tab-item{
				text{
					font-weight: 400;
					font-size: 32rpx;
					color: #333333;
					line-height: 44rpx;
					position: relative;
				}
				&.select{
					text{
						font-weight: bold;
						font-size: 32rpx;
						color: #E72A2A;
						line-height: 44rpx;
						&::after{
							content: '';
							width: 52rpx;
							height: 8rpx;
							background: #E72A2A;
							border-radius: 4rpx;
							position: absolute;
							top: calc(100% + 4rpx);
							left: 50%;
							transform: translateX(-50%);
						}
					}
				}
			}
		}
	}

	.list{
		padding: 0 22rpx;
		box-sizing: border-box;
		.item{
			background: #FFFFFF;
			border-radius: 20rpx;
			padding: 20rpx 12rpx 26rpx 22rpx;
			box-sizing: border-box;
			margin-top: 20rpx;
			.title{
				display: flex;
				align-items: center;
				justify-content: space-between;
				.name{
					font-weight: bold;
					font-size: 36rpx;
					color: #000000;
					line-height: 50rpx;
				}
				&>text{
					font-weight: 400;
					font-size: 32rpx;
					line-height: 44rpx;
				}
			}
			.con-text{
				font-weight: 400;
				font-size: 28rpx;
				color: #000000;
				line-height: 40rpx;
				margin-top: 20rpx;
			}
			.time{
				font-weight: 400;
				font-size: 28rpx;
				color: #7A7A7A;
				line-height: 40rpx;
				margin-top: 16rpx;
			}
			.i-btn{
				display: flex;
				justify-content: flex-end;
				button{
					width: 136rpx;
					height: 52rpx;
					background: linear-gradient( 90deg, #FFA233 0%, #FB4C4C 100%);
					border-radius: 8rpx;
					margin-top: 14rpx;
					font-weight: 400;
					font-size: 28rpx;
					color: #FFFFFF;
					line-height: 52rpx;
				}
			}
		}
	}
}
</style>
